/*
Borealis Library
A library of commonly used hydrological modeling building blocks

Copyright (C) 2008  Chris Marsh

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/


#include <iostream>
#include "Clock_UnitTest.h"

CPPUNIT_TEST_SUITE_REGISTRATION( ClockTest );

void ClockTest::setUp()
{

}

void ClockTest::tearDown()
{


}

void ClockTest::TestTicToc()
{

	Borealis::Clock c;
	
	CPPUNIT_ASSERT(c.toc() == -1.0);

	c.tic();

	{
		c.tic();
	}
	
	std::cout << "\nElapsed time 1 was " << c.toc() << "us" << std::endl;
	std::cout << std::endl << "Elapsed time 2 was " << c.toc() << "us" << std::endl;
}